﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;
using FwProject.Core.Car;

namespace FwProject.Car
{
    [Table("CarMap")]
    public class CarMap: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        /// <summary>
        /// 汽车编号
        /// </summary>
        public Guid? CarInfoId { get; set; }
        [ForeignKey("CarInfoId")]
        /// <summary>
        /// 汽车对象
        /// </summary>
        public virtual CarInfo CarInfoModel { get; set; }
        /// <summary>
        /// 司机编号
        /// </summary>
        [Required]
        public long EmployeeDriverid { get; set; }
        /// <summary>
        /// 工厂编号
        /// </summary>
        [Required]
        public Guid FactoryId { get; set; }

        [Required]
        [StringLength(StringLength)]
        /// <summary>
        /// 经度
        /// </summary>
        /// <value>The longitude.</value>
        public string longitude { get; set; }
        [Required]
        [StringLength(StringLength)]
        /// <summary>
        /// 纬度
        /// </summary>
        /// <value>The latitude.</value>
        public string latitude { get; set; }
    }
}
